package com.woorigil.social.domain.subscribe;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.woorigil.social.domain.CouponSqlMapDaoSupport;

@Repository
public class MailDao extends CouponSqlMapDaoSupport<Mail, Integer> {
	public static final String NAMESPACE = "Mail";

	@Override
	public String getNamespace() {
		return NAMESPACE;
	}
	
	@SuppressWarnings("unchecked")
	public List<Mail> selectList(int offset) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("offset", offset);		
		return getSqlMapClientTemplate().queryForList(getStatementName(NAMESPACE, "selectList"), params);
	}
}